Bin¶
Bin is a view that can hold only one child. The child can be either an View
or
Element
.
-
class
Aduct.Views.Bin.
Bin
(**kwargs)¶ Makes a bin based on given properties. Its CSS name is aduct-bin.
Parameters: **kwargs – The keyword arguments to be passed to Gtk.Bin
from whichBin
is made.-
add_child
(child)¶ Adds the child
self
.Parameters: child ( View
orElement
) – The child to be added toself
.Raises: ValueError
– Raised whenself
already has a child.
-
get_props
()¶ Gets the interface properties.
Returns: A dictionary with interface properties. Return type: dict
-
remove_child
(child)¶ Removes the given child.
Parameters: child ( View
orElement
) – The child which has to be removed fromself
.Raises: ValueError
– Raised whenchild
is not present inself
.
-
replace_child
(old_child, new_child)¶ Replaces the existing child with a new child.
Parameters:
-
set_from_props
(props)¶ Sets the interface from given properties.
Parameters: props ( dict
) – The dictionary containig properties of interface.
-
type
¶ Used by autodoc_mock_imports.
-